package Model;
import java.util.ArrayList;

public class EmployeeCont
{
   private static ArrayList<Employee> employes;
   
   private static EmployeeCont instance;
   
   private EmployeeCont() 
   {    
       employes = new ArrayList<>();
   }
  
   
   public static EmployeeCont getInstance(){
       if(instance == null ){
           instance = new EmployeeCont();
       }
       return instance;
   }
   
   public static void addEmployee(Employee e)
   {
       employes.add(e);
   }

   public static ArrayList<Employee> getCont()
   {
       return employes;
    }
}